import { Expose } from "class-transformer";

export class DeptDetailRawVo {
    @Expose()
    id!: string;

    @Expose({ name: "parent_id" })
    parentId!: string | null;

    @Expose()
    name!: string;

    @Expose({ name: "full_name" })
    fullName!: string;

    @Expose()
    code!: string;

    @Expose()
    type!: string;

    @Expose({ name: "type_name" })
    typeName!: string;

    @Expose()
    icon!: string | null;

    @Expose()
    level!: number;

    @Expose()
    phone!: string | null;

    @Expose()
    email!: string | null;

    @Expose()
    remark!: string | null;

    @Expose({ name: "is_leaf" })
    isLeaf!: boolean | null;

    @Expose()
    children: DeptDetailRawVo[] | null = null;
}
